﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SharpShare.Configuration;
using SharpShare.Activation;
using Microsoft.ManagementConsole;
using SharpShare.Management.Mmc.Views;

namespace SharpShare.Management.Mmc.Nodes {
    public class ServiceInstanceNode : ExtensionInstanceNode<ServiceElement> {
        public ServiceInstanceNode(ServiceElement extension, IExtensionFactory<ServiceElement> factory)
            : base(extension, factory, hideExpandIcon: false) {

        }

        protected override void OnExpand(Microsoft.ManagementConsole.AsyncStatus status) {
            base.OnExpand(status);

            ScopeNode sharesNode = new SharesNode(this.Extension);


            this.Children.Add(sharesNode);
        }
    }
}
